import request from '@/utils/request'

// 查询数据库列表
export function listBusinessdb(query) {
  return request({
    url: '/business/businessdb/list',
    method: 'get',
    params: query
  })
}

// 查询数据库详细
export function getBusinessdb(id) {
  return request({
    url: '/business/businessdb/' + id,
    method: 'get'
  })
}

// 新增数据库
export function addBusinessdb(data) {
  return request({
    url: '/business/businessdb',
    method: 'post',
    data: data
  })
}

// 修改数据库
export function updateBusinessdb(data) {
  return request({
    url: '/business/businessdb',
    method: 'put',
    data: data
  })
}

// 删除数据库
export function delBusinessdb(id) {
  return request({
    url: '/business/businessdb/' + id,
    method: 'delete'
  })
}
